<?php	

	add_filter('cv_init_options', 'theme_init_options');
	
	function theme_init_options($opt) {	
	
		$pages = cv_pages();
		$entries_amount = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16");
		$categories = cv_categories();	
		
		// Homepage Settings
		$opt[] = array( "name" => __("Home settings", hybrid_get_textdomain()),
							"type" => "heading");						
	
		$opt[] = array( "name" => "Hello Colorvila",
							"desc" => "",
							"id" => "theme_intro",
							"std" => __("<h3 style=\"margin: 0 0 10px;\">Welcome to TechGeek options panel.</h3>
										TechGeek is a TechCrunch.com like technology News WordPress theme. This powerful theme will transform your website into a high-tech News/Magazine site. TechGeek features custom widgets, social media, shortcodes, portfolio, theme options, popular articles and many more. Three different color schemes and a team page template. If you want to learn how to setup these options or just need general help on using it feel free to visit our site at <a href=\"http://colorvila.com/\">ColorVila.com</a>", hybrid_get_textdomain()),							
							"icon" => true,
							"type" => "info");	
		
		$opt[] = array( "name" => __("Header banner content type", hybrid_get_textdomain()),
								"desc" => __("Select header banner content type, image or html.", hybrid_get_textdomain()),
								"id" => "headerbanner_type",
								"std" => 'image',
								"type" => "select",
								"options" => array('image', 'html')); 
								
		$opt[] = array( "name" => __("Header banner (image)", hybrid_get_textdomain()),
							"desc" => __("Upload a image for your header banner, can be advertisement or any other, the best size is:728px*90px.", hybrid_get_textdomain()),
							"id" => "header_banner",
							"std" => "",
							"type" => "upload");	
							
		$opt[] = array( "name" => __("Header banner (html)", hybrid_get_textdomain()),
							"desc" => __("You can input anything to shown on header banner.", hybrid_get_textdomain()),
							"id" => "header_banner_html",
							"std" => "",
							"type" => "textarea");	
	
		$opt[] = array( "name" => __("Announcement text", hybrid_get_textdomain()),
							"desc" => __("The announcement text.", hybrid_get_textdomain()),
							"id" => "announcement",
							"std" => "Announcement about anything, at the top of top-story.",
							"type" => "textarea"); 		

		$opt[] = array( "name" => __("Hot topics type", hybrid_get_textdomain()),
								"desc" => __("Popular tags or Manual input.", hybrid_get_textdomain()),
								"id" => "hottopics_type",
								"std" => 'popular-tags',
								"type" => "select",
								"options" => array('popular-tags', 'manual-input')); 
		
		$opt[] = array( "name" => __("Hot topic tags(Manual input)", hybrid_get_textdomain()),
							"desc" => __('Input the tags seperated by ","', hybrid_get_textdomain()),
							"id" => "hottopics_tags",
							"std" => '',
							"type" => "textarea"); 	
							
		$opt[] = array( "name" => __("Top-story amount", hybrid_get_textdomain()),
								"desc" => __("The number of top-stories to be shown on homepage.", hybrid_get_textdomain()),
								"id" => "topstory_amount",
								"std" => 4,
								"type" => "select",
								"options" => $entries_amount); 

		$opt[] = array( "name" => __("Show featured image on homepage post", hybrid_get_textdomain()),
								"desc" => __("Select to show or not show featured image on homepage post", hybrid_get_textdomain()),
								"id" => "homepage_post_featuredimage",
								"std" => 'show',
								"type" => "select",
								"options" => array('show', 'not-show')); 

		$opt[] = array( "name" => __("Homepage post content type", hybrid_get_textdomain()),
								"desc" => __("Select to show excerpt or content on homepage post", hybrid_get_textdomain()),
								"id" => "homepage_post_content",
								"std" => 'content',
								"type" => "select",
								"options" => array('content', 'excerpt')); 								
		return $opt; 
			
	}		
	
	add_filter('cv_social_media', 'add_socialmedia_options');	
	function add_socialmedia_options($opt) {	
	
		$opt[] = array( "name" => __("Facebook url", hybrid_get_textdomain()),
							"desc" => __("Enter your Facebook URL e.g. http://www.facebook.com/colorvila.", hybrid_get_textdomain()),
							"id" => "sm_facebook_url",
							"std" => "http://www.facebook.com/colorvila",
							"type" => "text");			
							
		$opt[] = array( "name" => __("Email address", hybrid_get_textdomain()),
							"desc" => __("Enter your email address e.g. colorvila@gmail.com ", hybrid_get_textdomain()),
							"id" => "sm_email_url",
							"std" => "abc@abc.com",
							"type" => "text");	
		$opt[] = array( "name" => __("RSS url", hybrid_get_textdomain()),
							"desc" => __("Enter your RSS URL e.g. http://www.colorvila.com/rss.", hybrid_get_textdomain()),
							"id" => "sm_rss_url",
							"std" => "http://www.colorvila.com/rss",
							"type" => "text");	
		
		$opt[] = array( "name" => __("Show social media on post.", hybrid_get_textdomain()),
							"desc" => __("Check to display social media on post.", hybrid_get_textdomain()),
							"id" => "sm_show_socialmedia",
							"std" => true,
							"type" => "checkbox");		
							
		return $opt; 
	}
	
	add_filter('cv_portfolio_options', 'add_portfolio_options');	
	function add_portfolio_options($opt) {								
		$url =   trailingslashit( THEME_FUNCTIONS_URI ) . 'theme-options/images/';
		$opt[] = array( "name" => __("Portfolio style", hybrid_get_textdomain()),
							"desc" => __("Select portfolio style.", hybrid_get_textdomain()),
							"id" => "pf_portfolio_style",
							"std" => 'four-column',
							"type" => "images",
							"options" => array(
									'four-column' => $url . '4-col-portfolio.png',
									'three-column' => $url . '3-col-portfolio.png',
									'two-column' => $url . '2-col-portfolio.png'));	
		return $opt; 
	}




?>
